cmake_minimum_required(VERSION 3.0)

project(GaussNewton)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

find_package(Ceres REQUIRED)
include_directories(${Ceres_INCLUDE_DIRS})

# find_package(G2o REQUIRED)
# include_directories(${G2o_INCLUDE_DIRS})

include_directories("/usr/local/include/Eigen")

aux_source_directory(./ SOURCE_DIRS)

add_executable(${PROJECT_NAME} gaussnewton.cpp)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} ${Ceres_LIBRARIES})